package com.muyu.danmo.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 访客对象 danmo_user_visitors
 * 
 * @author yangle
 * @date 2024-11-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoUserVisitors extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 访客的唯一标识符（主键）。 */
    private Long visitorId;

    /** 问的用户ID（外键，关联到用户表）。 */
    @Excel(name = "被访问的用户ID", readConverterExp = "外=键，关联到用户表")
    private Long userId;


    /** 访客的姓名。 */
    @Excel(name = "访客的姓名。")
    private String visitorName;

    /** 访客访问的时间。 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "访客访问的时间。", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitTime;

    @Excel(name = "被访问的个人信息id")
    private Long informationId;

    @Excel(name = "被访问的个人信息")
    private String tableName;

    private DanmoInformationCopy1 danmoInformationCopy1List;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("visitorId", getVisitorId())
            .append("userId", getUserId())
            .append("visitorName", getVisitorName())
            .append("visitTime", getVisitTime())
            .append("informationId", getInformationId())
            .append("tableName", getTableName())
            .toString();
    }
}
